<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/angular.min.js"></script>
	</head>
	<body ng-app="myApp">
		<div ng-controller="GreetingCtrl">
			{{greeting}}
			{{double()}}
		</div>
		<script type="text/javascript">
			var app=angular.module("myApp",[]);
			app.controller("GreetingCtrl",["$scope",function($scope){
				//控制器创建完成
				 $scope.greeting = 'Hola!';
				 $scope.double = function() { 
					 return "Hola!"; 
				};
			}])
		</script>
	</body>
</html>
